//
//  WMCameraView.m
//  Mink
//
//  Created by 周述坚 on 17/6/22.
//  Copyright © 2017年 周述坚. All rights reserved.
//

#import "WMCameraView.h"

@implementation WMCameraView

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        
    }
    return self;
}

- (void)createPreviewController:(UIViewController *)vc{
    if (vc != nil) {
        VRPreviewController *previewCtrl = [[VRPreviewController alloc] init];
        previewCtrl.view.frame = self.bounds;
        [self insertSubview:previewCtrl.view atIndex:0];
        [vc addChildViewController:previewCtrl];
        [previewCtrl didMoveToParentViewController:vc];
    }
}



@end
